<!-- 退还申请-详情 -->
<template>
	<view>
		<view class="p-3">
			<view class="bt-block">
				<bg-cell2 label="姓名" :value="obj.createUserName"></bg-cell2>
				<bg-cell2 label="身份证号" :value="obj.idCardNo"></bg-cell2>
				<bg-cell2 label="手机号" :value="obj.phone"></bg-cell2>
				<bg-cell2 label="项目名称" :value="obj.projectName"></bg-cell2>
				<bg-cell2 label="归还物资" :value="obj.materialName"></bg-cell2>
				<bg-cell2 label="归还" :value="obj.returnCount"></bg-cell2>
				<bg-cell2 label="单件价格" :value="obj.unitPrice"></bg-cell2>
				<bg-cell2 label="合计价格" :value="obj.totalAmount">
					<template slot="extra">
						<view class="font-12 text-red">
							*如丢失此金额在申领人工资表中扣除
						</view>
					</template>
				</bg-cell2>
				<bg-cell2 label="未归还" :value="obj.unreturnCount"></bg-cell2>
				<bg-cell2 :border="false" label="扣除金额" :value="obj.deductAmount"></bg-cell2>
			</view>
			<view class="bt-block mt-3 px24py30">
				<bg-title>
					<text>温馨提示</text>
				</bg-title>
				<view class="mt-3 font-14 text-grey2 font-normal">
					申领人领用的本物资如有损坏丢失，需照本申领单约定照价赔偿，此费要从申领人劳动报酬中扣除，领取人同意请在下方申领签字
				</view>
			</view>
			<view class="bt-block mt-3">
				<bg-cell2 :border="false" label="申领人签字">
					<template slot="value">
						<u--image width="380rpx" height="154rpx" :src="obj.signedImg"></u--image>
					</template>
				</bg-cell2>
			</view>
			<view class="bt-block mt-3">
				<bg-cell2 :border="false" label="物资照片" >
					<template slot="extra">
						<bg-images :imgList="obj.returnMaterialImgList"></bg-images>
					</template>
				</bg-cell2>
			</view>
			
		</view>
	</view>
</template>

<script>
	import { returnDetail } from '../../../api/apply'
	export default {
		data() {
			return {
				id:'',
				obj:{}
			}
		},
		onLoad(options){
			this.id = options.id
			this.getData()
		},
		methods: {
			getData(){
				returnDetail(this.id).then(res=>{
					this.obj = res.data
				})
			}
		}
	}
</script>

<style>

</style>
